package cn.edu.scau.cmi.xiaowenyang.singletonPattern;

public class Chairman {

	private String name;
	private static Chairman chairman;

	private Chairman(String name) {
		this.name = name;
	}

	public static Chairman getInstance(String name) {
		if (chairman == null) {
			chairman = new Chairman(name);
		}
		return chairman;
	}

	public String getName() {
		return name;
	}
}
